﻿namespace Taobao.Model
{
    using Castle.ActiveRecord;
    using System;

    [ActiveRecord("Refund", Schema="dbo")]
    public class Refund : ActiveRecordBase<Refund>
    {
        private DateTime _created;
        private long _iD;
        private DateTime _modified;
        private decimal _refundfee;
        private long _refundID;
        private Taobao.Model.Shop _shop;
        private string _status;
        private long _taobaoID;
        private string _title;
        private decimal _totalfee;       

        [Property("Created", ColumnType="Timestamp")]
        public virtual DateTime Created
        {
            get
            {
                return this._created;
            }
            set
            {
                this._created = value;
            }
        }

        [PrimaryKey(PrimaryKeyType.Native, "ID", ColumnType="Int64")]
        public virtual long ID
        {
            get
            {
                return this._iD;
            }
            set
            {
                this._iD = value;
            }
        }

        [Property("Modified", ColumnType="Timestamp")]
        public virtual DateTime Modified
        {
            get
            {
                return this._modified;
            }
            set
            {
                this._modified = value;
            }
        }

        [Property("Refundfee", ColumnType="Decimal")]
        public virtual decimal Refundfee
        {
            get
            {
                return this._refundfee;
            }
            set
            {
                this._refundfee = value;
            }
        }

        [Property("RefundID", ColumnType="Int64")]
        public virtual long RefundID
        {
            get
            {
                return this._refundID;
            }
            set
            {
                this._refundID = value;
            }
        }

        [BelongsTo]
        public virtual Taobao.Model.Shop Shop
        {
            get
            {
                return this._shop;
            }
            set
            {
                this._shop = value;
            }
        }

        [Property("Status", ColumnType="String")]
        public virtual string Status
        {
            get
            {
                return this._status;
            }
            set
            {
                this._status = value;
            }
        }

        [Property("TaobaoID", ColumnType="Int64")]
        public virtual long TaobaoID
        {
            get
            {
                return this._taobaoID;
            }
            set
            {
                this._taobaoID = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string Title
        {
            get
            {
                return this._title;
            }
            set
            {
                this._title = value;
            }
        }

        [Property("Totalfee", ColumnType="Decimal")]
        public virtual decimal Totalfee
        {
            get
            {
                return this._totalfee;
            }
            set
            {
                this._totalfee = value;
            }
        }

        [Property("ItemNumID", ColumnType = "Int64")]
        public virtual long ItemNumID
        {
            get;
            set;
        }

        [Property("OuterID", ColumnType = "String")]
        public virtual string OuterID
        {
            get;
            set;
        }
    }
}

